
<% products.each do |product| %>
  <tr>
    <td><%= product.name %></td>
    <td><%= product.user_id %></td>
    <td><%= product.item_type %></td>
    <td><%= product.isnew %></td>
    <td><%= product.madein %></td>
    <td><%= product.quantity %></td>
    <td><%= product.auction_id %></td>
    <td><%= product.description %></td>
    <%= render :partial => 'list_aucting', :locals=>{:auctings=>product.auctings} %>
    <%= render :partial => 'form_aucting',:locals => {:aucting=>Aucting.new(:user_id=>current_user.id,:product_id=>product.id)} %>
    <td><%= link_to 'Show', product %></td>
    <td><%= link_to 'Edit', edit_product_path(product) %></td>
    <td><%= link_to 'Destroy', product, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

